/**
 * @Author: chenqy
 * @Date: 2020-8-10 11:44:39
 * @LastEditors chenqy
 * @LastEditTime 2020-8-10 11:44:39
 * @Description: 个人中心 --- 主页面接口
 */
import sendRequest from '../../common/request.js';

// 登陆（手机号加密码）
export const register = (data) => {
  return sendRequest({
    url: 'login/register',
    method: 'POST',
    data: data
  });
};
// 设置新密码--修改密码
export const registerPassword = (data) => {
  return sendRequest({
    url: 'login/registerPassword',
    method: 'POST',
    data: data
  });
};

// 登录权限验证
export const getToken = (data) => {
  return sendRequest({
    url: 'login/getToken',
    method: 'POST',
    data: data
  });
};

// 是否已经登录
export const isUserlogin = (data) => {
  return sendRequest({
    url: 'login/isUserlogin',
    method: 'POST',
    data: data
  });
};
// 退出登录
export const clearUserInfoAp = (data) => {
  return sendRequest({
    url: 'login/clearUserInfo',
    method: 'POST',
    data: data
  });
};
// 个人中心里面的数据
export const getUsers = (data) => {
  return sendRequest({
    url: 'login/clearUserInfo',
    method: 'POST',
    data: data
  });
};
